package com.os.mapper.system;

import org.apache.ibatis.jdbc.SQL;

/**
 * @Author Matt
 * @Date 2022-07-09
 * @Desc:
 * @Version V1.0
 */
public class PrivilegeProvider {

    public String selectById(final Long id){
        return new SQL(){
            {
                SELECT("  id, privilege_name privilegeName, privilege_url privilegeUrl");
                FROM("  sys_privilege");
                WHERE("  id = #{id}");
            }
        }.toString();
    }
}
